MPT.addTmpl('friend_find', function(_data) {

    var html = [];

    html.push('<div class="contenter find_detail" id="contenter">');
    html.push('<div class="mpt a_friend_find">');
    html.push(' <div class="leftside">');
    html.push('     <h2 class="title">查找方式</h2>');
    html.push('        <div class="search_nc e_method">');
    html.push('            <a class="hd e_title" title="社区昵称查找">社区昵称查找</a>');
    html.push('            <div class="bd e_detail">');
    html.push('                <input class="inp1 e_nick_input" type="text" name="" id="" value="">');
    html.push('                <div class="btn1_30 btn"><strong class="btn2_30 e_nick_submit" title="查找">查 找</strong></div>');
    html.push('            </div>');
    html.push('        </div>');
    html.push('        <div class="search_wb e_method">');
    html.push('            <a class="hd e_title" title="社区玩伴查找">社区玩伴查找</a>');
    html.push('            <div class="bd e_detail">');
    html.push('                <select class="inp2" name="" id="">');
    html.push('                    <option value="1">小小掌门</option>');
    html.push('                    <option value="2">养鱼达人</option>');
    html.push('                </select>');
    html.push('                <div class="btn1_30 btn"><strong class="btn2_30" title="查找">查 找</strong></div>');
    html.push('            </div>');
    html.push('        </div>');
    html.push('        <div class="search_yx e_method">');
    html.push('            <a class="hd e_title" title="游戏信息查找">游戏信息查找</a>');
    html.push('            <div class="bd e_detail">');
    html.push('                <p class="txt">游戏：<em>蜀门</em></p>');
    html.push('                <p class="txt">游戏大区：</p>');
    html.push('                <select class="inp2 e_gamearea" name="" id="">');
    html.push('                </select>');
    html.push('                <p class="txt">游戏服务器：</p>');
    html.push('                <select class="inp2 e_gamefwq" name="" id="">');
    html.push('                </select>');
    html.push('                <div class="btn1_30 btn"><strong class="btn2_30" title="查找">查 找</strong></div>');
    html.push('            </div>');
    html.push('        </div>');
    html.push('        <div class="search_gr e_method">');
    html.push('            <a class="hd e_title" title="个人信息查找">个人信息查找</a>');
    html.push('            <div class="bd e_detail">');
    html.push('                <p class="txt">性别：</p>');
    html.push('                <select class="inp2" name="" id="">');
    html.push('                    <option value="0">男</option>');
    html.push('                    <option value="1">女</option>');
    html.push('                </select>');
    html.push('                <p class="txt">年龄：</p>');
    html.push('                <select class="inp2" name="" id="">');
    html.push('                    <option value="-1">不限</option>');
	html.push('                    <option value="00000000|19691231">1969年以及更早</option>');
	html.push('                    <option value="19700101|19741231">1970年-1974年</option>');
	html.push('                    <option value="19750101|19791231">1975年-1979年</option>');
	html.push('                    <option value="19800101|19841231">1980年-1984年</option>');
	html.push('                    <option value="19850101|19891231">1985年-1989年</option>');
	html.push('                    <option value="19900101|19941231">1990年-1994年</option>');
	html.push('                    <option value="19950101|20001231">1995年-2000年</option>');
	html.push('                    <option value="20010101|99999999">2001年以后</option>');
    html.push('                </select>');
    html.push('                <p class="txt">省份：</p>');
    html.push('                <select class="inp2 e_province" name="" id="">');
    html.push('                </select>');
    html.push('                <div class="btn1_30 btn"><strong class="btn2_30" title="查找">查 找</strong></div>');
    html.push('            </div>');
    html.push('        </div>');
    html.push('    </div>');
    html.push('    <div class="rightside">');
    html.push('     <h2 class="hd"><span class="e_result_title">推荐好友</span>&nbsp;<span class="e_result_count">0</span></h2>');
    html.push('        <div class="bd e_result_list">');
    html.push('        </div>');
    html.push('        <div class="paging e_page">');
    html.push('        </div>');
    html.push('    </div>');
    html.push('</div>');
    html.push('</div>');
    return html.join('');
});


MPT.addTmpl('one_result', function(_data) {

    var html = [];


    var uid = _data.uid;
    var nickname = _data.nickName;
    var isfriend = _data.isFriend;
    var isfollow = _data.isFollowed;
    var sex = _data.sex;
    var homtownCityId = _data.homtownCityId;
    var liveCityId = _data.liveCityId;

    var is_online = _data.online;
    var online_icon = is_online ? "online" : "";

    var avatarPath = Util.avatarPath(uid, 33);
    var spacePath = Util.spacePath(uid);

    html.push('<dl class="one_people">');
    html.push('		<dt class="head"><a href="' + spacePath + '"><img src="' + avatarPath + '" alt=""></a></dt>');
    html.push('		<dd class="content">');
    html.push('			<div class="btn_box">');

    html.push('				<a class="del e_delete ' + (isfriend ? "" : "hide") + '" href="javascript:;">删除好友</a>');
    html.push('				<a class="add_hy e_add ' + (isfriend ? "hide" : "") + '" href="javascript:;">添加好友</a>');
    html.push('				<a class="del e_cancel ' + (isfollow ? "" : "hide") + '" href="javascript:;">取消关注</a>');
    html.push('				<a class="add_gz e_follow ' + (isfollow ? "hide" : "") + '" href="javascript:;">添加关注</a>');

    html.push('			</div>');
    html.push('			<h3 class="name ' + online_icon + '"><a href="' + spacePath + '" title="' + nickname + '">' + nickname + '</a></h3>');
    html.push('			<p class="txt">【电信一区-傲视天下】</p>');
    html.push('			<p class="txt">' + sex + '，现居上海，家乡长沙</p>');
    html.push('		</dd>');
    html.push('</dl>');

    return html.join('');
});

MPT.addTmpl('one_interest', function(_data) {

    var html = [];

    var uid = _data.USERID;
    var nickname = _data.NICKNAME;
    var city = _data.CITY;
    var reason_id = parseInt(_data.reason);

    switch (reason_id) {
        case 1: var reason = "同一游戏区"; break;
        case 2: var reason = "同一居住地"; break;
        case 3: var reason = "社区推荐"; break;
    }

    var avatarPath = Util.avatarPath(uid, 33);
    var spacePath = Util.spacePath(uid);

    html.push('<dl class="one_people">');
    html.push('		<dt class="head"><a href="' + spacePath + '"><img src="' + avatarPath + '" alt=""></a></dt>');
    html.push('		<dd class="content">');
    html.push('			<div class="btn_box">');

    html.push('				<a class="add_hy e_add" href="javascript:;">添加好友</a>');

    html.push('			</div>');
    html.push('			<h3 class="name"><a href="' + spacePath + '" title="' + nickname + '">' + nickname + '</a></h3>');
    html.push('			<p class="reason">' + reason + '</p>');
    html.push('		</dd>');
    html.push('</dl>');

    return html.join('');
});